﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEditor;
using UnityEngine;

namespace hxweditor
{
    public class PreviewSkillDataEditor : BaseEditorWindow<PreviewSkillDataEditor>
    {

        private Vector3 m_scrollPos;

        public PreviewSkillDataEditor()
		{
			this.titleContent = new GUIContent("预览技能数据窗口");
		}

        void OnEnable()
        {
            //if (SkillDataTableObject.instance == null)
            //{
            //    SkillDataTableObject obj = ScriptableObject.CreateInstance<SkillDataTableObject>();
            //    AssetDatabase.CreateAsset(obj, SkillDataTableObject.path);
            //    AssetDatabase.SaveAssets();
            //}
        }

        void OnGUI()
        {
        //    if (SkillDataTableObject.instance != null)
        //    {
        //        m_scrollPos = EditorGUILayout.BeginScrollView(m_scrollPos,new GUILayoutOption[0]);

        //        foreach(SkillEffectVo vo in SkillDataTableObject.instance.SkillVoDic)
        //        {
        //            ShowButton("技能ID:" + vo.SkillID);

        //            foreach (SkillActionVo actionVo in vo.ActionList)
        //            {
        //                ShowButton(actionVo.ToString());
        //            }

        //            ShowSpaceLine(1);
        //        }

        //        EditorGUILayout.EndScrollView();

        //    }

        }

    }

}